package cn.haohaowo.webservice.client;

import org.apache.cxf.endpoint.Client;
import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;

public class WebServiceClientAnother {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
		JaxWsDynamicClientFactory jaxWsDynamicClientFactory = JaxWsDynamicClientFactory.newInstance();
		Client client = jaxWsDynamicClientFactory.createClient("http://localhost:9000/helloWorldService?wsdl");
		Object[] obj = client.invoke("sayHello", "Robinson");
		System.out.println(obj[0]);
	}

}
